<nz-collapse>
    <nz-collapse-panel *ngFor="let w of components; let f = first" [nzActive]="f" [nzHeader]="w.name">
        <div *ngFor="let c of w.widgets" class="component">
            <div class="icon">
                <img [src]="'/nuwa/component/'+c.id+'/'+c.icon" alt="c.name" loading="lazy"/>
            </div>
            <div class="name">{{ c.name }}</div>
        </div>
    </nz-collapse-panel>
</nz-collapse>
<nz-empty *ngIf="!components" nzNotFoundContent="组件库为空"></nz-empty>
